{extend name="adminblue/base" /}
{block name="resources"/}
<link rel="stylesheet" type="text/css" href="ADMIN_CSS/dashboard.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/blue/css/ns_index.css">
<script src="ADMIN_JS/highcharts.js"></script>
<script src="ADMIN_JS/exporting.js"></script>
<script>
var admin_main = "ADMIN_MAIN";
</script>
<script src="ADMIN_JS/index.js"></script>
<script src="ADMIN_JS/jquery.timers.js"></script>
<!-- ********************【脚本统一写在index.js中】******************** -->
{/block}
{block name="warm_prompt"}{/block}
{block name="thirdmenu"}{/block}
{block name="right_tab_tip"}{/block}
{block name="main"}
<div class="statistical">
	<ul>
		<li class="order-amount-statistics">
			<header>
				<i class="ns-icon-base i-order-amount"></i>
				<span>今年订单总金额(元)</span>
			</header>
			<p class="js-order-amount">0.00</p>
		</li>
		<li class="focus-number-statistics">
			<header>
				<i class="ns-icon-base i-focus-number"></i>
				<span>关注人数(个)</span>
			</header>
			<p class="js-weixin-fans-count">0</p>
		</li>
		<li class="goods-release-statistics">
			<header>
				<i class="ns-icon-base i-goods-release"></i>
				<span>商品发布(个)</span>
			</header>
			<p class="js-goods-release-count">0</p>
		</li>
		<li class="order-total-statistics">
			<header>
				<i class="ns-icon-base i-order-total"></i>
				<span>订单总数(笔)</span>
			</header>
			<p class="js-order-total">0</p>
		</li>
		<li class="month-sales-statistics">
			<header>
				<i class="ns-icon-base i-month-sales"></i>
				<span>本月销量(笔)</span>
			</header>
			<p class="js-month-sales">0</p>
		</li>
		<li class="completed-transaction-statistics">
			<header>
				<i class="ns-icon-base i-completed-transaction"></i>
				<span>已完成交易(笔)</span>
			</header>
			<p class="js-order-finish-count">0</p>
		</li>
	</ul>
</div>

<div class="goods-prompt">
	<h3>店铺及商品提示<span>您需要关注的店铺信息以及待处理事项</span></h3>
	<div class="subtitle">
		<img src="__STATIC__/images/orange_picture.png" /><label>图片空间使用情况：<span>不限</span></label>
		<img src="__STATIC__/images/green_giftbag.png" /><label>店铺商品发布情况：<span class="goods_all_count">0/不限</span></label>
	</div>
	<div class="goods-state a-line">
		<ul>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/goods/goodslist')}'"><h4 class="goods_sale_count">0</h4>出售中</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/goods/goodslist')}';"><h4 class="goods_audit_count">0</h4>仓库中</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/saleservice/consultlist?type=to_reply')}';"><h4 class="goods_consult_count">0</h4>待回复咨询</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/member/usercommissionwithdrawlist')}';"><h4 class="member_balance_withdraw">0</h4>会员提现审核</li>
		</ul>
	</div>
</div>

<div class="merchants-help">
	<h3>商家帮助<span>您需要的商家帮助</span></h3>
	<div class="merchants-use">
		<ul>
			<li>
				
				<a href="{:__URL('ADMIN_MAIN/goods/goodslist')}">
					<img src="__STATIC__/blue/img/goods_management.png"/>
					<span>商品管理</span>
				</a>
			</li>
			<li>
				<a href="{:__URL('ADMIN_MAIN/promotion/coupontypelist')}">
					<img src="__STATIC__/blue/img/promotions.png"/>
					<span>促销方式</span>
				</a>
			</li>
			<li>
				<a href="{:__URL('ADMIN_MAIN/order/orderlist')}">
					<img src="__STATIC__/blue/img/order_after.png"/>
					<span>订单及售后</span>
				</a>
			</li>
		</ul>
	</div>
</div>

<div class="goods-prompt">
	<h3>
		交易提示<span>您需要立即处理的交易订单</span>
	</h3>
	<div class="subtitle">
		<img src="__STATIC__/images/green_list.png" /><label>近期售出：<span>交易中的订单</span></label>
		<img src="__STATIC__/images/orange_shield.png" /><label>维权投诉：<span>收到维权投诉</span></label>
	</div>
	<div class="goods-state a-line order">
		<ul>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/order/orderlist?status=0')}';"><h4 class="daifukuan">0</h4>待付款</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/order/orderlist?status=1')}';"><h4 class="daifahuo">0</h4>待发货</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/order/orderlist?status=2')}';"><h4 class="yifahuo">0</h4>已发货</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/order/orderlist?status=3')}';"><h4 class="yishouhuo">0</h4>已收货</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/order/orderlist?status=4')}';"><h4 class="yiwancheng">0</h4>已完成</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/order/orderlist?status=5')}';"><h4 class="yiguanbi">0</h4>已关闭</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/order/orderlist?status=-1')}';"><h4 class="tuikuanzhong">0</h4>退款中</li>
			<li onclick="location.href='{:__URL('ADMIN_MAIN/order/orderlist?status=-2')}';" style="display: none;"><h4 class="yituikuan">0</h4>已退款</li>
		</ul>
	</div>
</div>

<div class="sales">
	<h3>
		销售情况统计<span>按周期统计商家店铺的订单量和订单金额</span>
	</h3>
	
	<table>
		<tr>
			<td colspan="2" align="left" style="padding: 15px 0 0 20px;">昨日销量</td>
		</tr>
		<tr>
			<td>
				<strong class="yesterday_goods">0</strong>
				<span>订单量(件)</span>
			</td>
			<td>
				<strong class="yesterday_money">0</strong>
				<span>订单金额(元)</span>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="left" style="padding: 15px 0 0 20px;">本月销量</td>
		</tr>
		<tr>
			<td>
				<strong class="month_goods">0</strong>
				<span>订单量(件)</span>
			</td>
			<td>
				<strong class="month_money">0</strong>
				<span>订单金额(元)</span>
			</td>
		</tr>
	</table>
</div>

<div class="charts">
	<h3>
		订单总数统计<span><i></i>订单数量</span>
	</h3>
	<div id="orderCharts"></div>
</div>

<div class="sales-ranking">
	<h3>
		单品销售排名<span>按周期统计商家店铺的订单量和订单金额</span>
	</h3>
	<table>
		<tr>
			<td>排行</td>
			<td style="text-align:left;">商品信息</td>
			<td>销量</td>
		</tr>
		{foreach name="goods_list" item="goods_info"}
		<tr>
			<td>
			{if condition="$key eq 0 "}
				<span class="frist">
			{elseif condition="$key eq 1"/}
				<span class="second">
			{elseif condition="$key eq 2"/}
				<span class="third">
			{else /}
				<span>
			{/if}
				{$key+1}</span></td>
			<td title="{$goods_info.goods_name}" style="text-align:left;">
			<a href="{:__URL('SHOP_MAIN/goods/goodsinfo','goodsid='.$goods_info['goods_id'])}" target="_blank">
			<?php
			echo strlen($goods_info["goods_name"])>20 ? mb_substr($goods_info["goods_name"],0,20,'utf-8')."...":$goods_info["goods_name"];
			?></a>
			</td>
			<td>
			{if condition="$key eq 0 "}
				<span class="frist">
			{elseif condition="$key eq 1"/}
				<span class="second">
			{elseif condition="$key eq 2"/}
				<span class="third">
			{else /}
				<span>
			{/if}
			{$goods_info.real_sales}
				</span>
			</td>
		</tr>
	{/foreach}
	</table>
</div>
<div class="charts">
	<h3>
		关注人数统计<span><i></i>关注人数</span>
	</h3>
	<div id="focusCharts"></div>
</div>
<div class="system-config">
	<h3><i class="fa fa-cog"></i>系统信息</h3>
	<table>
		<colgroup>
			<col width="15%">
			<col width="40%">
			<col width="15%">
			<col width="30%">
		</colgroup>
		<tr>
			<td>服务器操作系统</td>
			<td>{$system_config['os']}</td>
			<td>服务器域名/IP</td>
			<td>{$system_config['dns']}:{$system_config['port']}&nbsp;[{$system_config['ip']}]</td>
		</tr>
		<tr>
			<td>服务器环境</td>
			<td>{$system_config['server_software']}</td>
			<td>PHP版本</td>
			<td>{$system_config['php_version']}</td>
		</tr>
		<tr>
			<td>文件上传限制</td>
			<td>{$system_config['upload_max_filesize']}</td>
			<td>GD版本</td>
			<td>{$system_config['gd_version']}</td>
		</tr>
<!-- 		<tr> -->
<!-- 			<td>最大执行时间</td> -->
<!-- 			<td colspan="3">{$system_config['max_execution_time']}</td> -->
<!-- 		</tr> -->
	</table>
</div>
{/block}